<form name="form_admin" method="POST" action="<?php echo formEditAction()?>" onsubmit="return CheckForm(this);">
<input type="hidden" name="id" value="<?php echo $id?>" />
<input type="hidden" name="oldUrl" value="<?php echo $category["cUrlString"] ?>" />

<table width="100%" cellpadding="0" cellspacing="0" id="tbledit">
	<tr>
        <td><b><font color="Red"><?php echo _URL?></font></b></td>
        <td>
		<input class="normal3" type="text" name="URL"  id="URL" value="<?php echo $category["cUrlString"] ?>" />

		<span style="color:#FF0000; padding-left:10" id="div_url"></span>
         </td>
    </tr>

	<tr>
        <td width="15%"><span class="style1"><?php echo _NAME?></span></td>
        <td><input class="normal3" type="text" name="CategoryName" id="CategoryName"
		value="<?php echo $category["cName"] ?>" /></td>
    </tr>

    <?php
	if(!isset($category['iParentId']) || $category['iParentId']>0)
	{
	?>
		<tr>
			<td><strong><?php echo _PARENTCATEGORY?></strong></td>
			<td>
				<select name="ParentCategory">
					<?php echo ListOptionCategory($module,$category['iParentId'])?>
				</select>
			</td>
		</tr>
	<?php
	}
	?>

	<?php
	if($hasTag)
	{
	?>
    <tr>
      <td><b><?php echo _TAGS?></b></td >
      <td><input type="text" id="Tag" name="Tag" class="normal3" value="<?php echo $tag["cTag"]?>"/></td>
    </tr>
	<?php
	}
	?>

    <tr>
      <td><strong><?php echo _INTROIMAGE?></strong></td>
      <td>
            <?php echo inputFile('ImgIntro',$category["cImage"])?>
      </td>
    </tr>

    <?php
	if(HAS_BANNER==true)
	{
	?>
    <tr>
        <td><b><?php echo _BANNERIMAGE?></b></td>
      <td>
             <?php echo inputFile('ImgBanner',$category["cBanner"],'banner')?>
		</td>
    </tr>
    <?php
	}
	?>
    
    <?php
	if(HAS_BACKGROUND==true)
	{
	?>
    <tr>
        <td><b>Background Image</b></td>
        <td>
            <?php echo inputFile('ImgBackground',$category["cBackground"],'background')?>
        </td>
    </tr>
    <?php
	}
	?>

    <tr>
        <td><b><?php echo _STATUS?></b></td>
        <td>
			<select name="Status" id="Status">
				<?php echo liststatus($category['iStatus'])?>
			</select>
	     </td>
    </tr>

    <tr>
        <td><b><?php echo _ORDER?></b></td>
        <td>
			<?php echo getOrderInput()?>
	     </td>
    </tr>

   	<tr>
        <td><b><?php echo _METATITLE?></b></td>
        <td><input class="normal3" style="width:90%" type="text" name="MetaTitle" id="MetaTitle"
		value="<?php echo $category["cMetaTitle"] ?>" /></td>
    </tr>

    <tr>
        <td><b><?php echo _METAKEYWORDS?></b></td>
        <td><input class="normal3" style="width:90%" type="text" name="MetaKeywords" id="MetaKeywords"
		 value="<?php echo $category["cMetaKeywords"] ?>"  /></td>
    </tr>

    <tr>
        <td valign="top" style="vertical-align:top"><b>Meta Description</b></td>
        <td style="padding-bottom:10"><textarea style="height:90px; width:90%;" class="noeditor"
		 name="MetaDescription" ><?php echo $category["cMetaDescription"] ?></textarea></td>
	</tr>

    <tr>
        <td valign="top" style="vertical-align:top"><b><?php echo Short_Description?></b></td>
        <td style="padding-bottom:10"><textarea style="height:120px; width:90%;"  id="Description"
		 name="Description" ><?php echo $category["cDescription"] ?></textarea></td>
	</tr>

    <tr>
	        <td valign="top" style="vertical-align:top"><b><?php echo _DESCRIPTION?></b></td>
	        <td><textarea style="height:350px; width:90%;" id="Intro"
			name="Intro"><?php echo $category["cIntro"] ?></textarea></td>
	</tr>

</table>
</form>
<script language="javascript" type="text/javascript">
function CheckForm(f)
{
	if(f.URL.value=="")
	{
		alert("please enter Url String");
		return false;
	}
	if(f.CategoryName.value=="")
	{
		alert("please enter name");
		return false;
	}
	return AIM.submit(f,null,true);
}
</script>